package com.wxzz.elearing.comment.service;

import com.wxzz.elearing.comment.dto.*;
import com.wxzz.elearing.comment.entity.Comment;
import com.wxzz.elearing.comment.entity.CommunityComment;
import com.wxzz.elearing.comment.entity.CommunityQuestionsAnswersList;
import com.wxzz.elearing.comment.entity.QuestionsAnswersList;
import com.wxzz.elearing.comment.vo.AnswersVo;
import com.wxzz.elearing.comment.vo.CommunityAnswersVo;
import com.wxzz.elearing.comment.vo.CommunityQuestionsContentDescVo;
import com.wxzz.elearing.comment.vo.QuestionsContentDescVo;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

public interface ICommunityCommentService {

    /**
     * 评论
     * @param comment
     * @return
     */
    ReturnVO saveComment(CommunityComment comment);

    /**
     * 根据文章id列出所有评论
     * @return
     */
    ReturnVO<CommunityQuestionsContentDescVo> listAllComment(Long articleId);

    /**
     * 采纳评论
     * @return
     */
    ReturnVO setAccept(CommunityQuestionsAnswersDto questionsAnswersDto);

    ReturnVO<JgPageVo<List<CommunityComment>>> answersDescList(CommunityAnswersDescDto answersDescDto);

    ReturnVO<JgPageVo<List<CommunityAnswersVo>>> getAnswersList(CommunityAnswersDto answersDto);

    //删除社区评论
    ReturnVO deleteComment(CommunityQuestionsAnswersDto questionsAnswersDto);

    ReturnVO deleteCommunityContent(CommunityQuestionsAnswersList communityQuestionsAnswersList);

}
